package com.yhp.bean;

import java.util.List;

//bean:属性，封装方法，无参构造，全参构造
//​ 表名=类名 ，列名=属性名
public class Grade {
 private Integer gradeid;
 private  String gradename;
private List<Student> studentsList;
    public Grade() {
    }

    public Grade(Integer gradeid, String gradename, List<Student> studentsList) {
        this.gradeid = gradeid;
        this.gradename = gradename;
        this.studentsList = studentsList;
    }

    public List<Student> getStudentsList() {
        return studentsList;
    }

    public void setStudentsList(List<Student> studentsList) {
        this.studentsList = studentsList;
    }

    public Integer getGradeid() {
        return gradeid;
    }

    public void setGradeid(Integer gradeid) {
        this.gradeid = gradeid;
    }

    public String getGradename() {
        return gradename;
    }

    public void setGradename(String gradename) {
        this.gradename = gradename;
    }
}
